package com.yunxi.service.localService.sto;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.service.IServicePlus;
import com.yunxi.model.sto.PartnerVehicleTrade;
import com.yunxi.sto.pojo.PartnerVehicleTradeApproveHisVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeDetailListVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeVO;
import java.util.List;

/**
 * <p>
 * 渠道商车辆买卖 服务类
 * </p>
 *
 * @author caoYong
 * @since 2019-08-30
 */
public interface PartnerVehicleTradeService extends IServicePlus<PartnerVehicleTrade> {

    List<PartnerVehicleTradeDetailListVO> detailList(String tradeId)throws Exception;

    PageInfo<PartnerVehicleTradeVO> saleFromManager(PartnerVehicleTradeVO partnerVehicleTradeVO, Integer pageNum, Integer pageSize) throws Exception;

    PageInfo<PartnerVehicleTradeApproveHisVO> approveHis(PartnerVehicleTradeVO partnerVehicleTradeVO, Integer pageNum, Integer pageSize) throws Exception;

    PartnerVehicleTradeVO getDetailById(String id)throws Exception;

    //根据渠道商代码查询大区代码
    String queryAreaCodeByPartnerCode(String partnerCode) throws Exception;

    //根据用户代码查询大区代码
    String queryAreaCodeByUserCode(String userCode) throws Exception;

}
